﻿// ------------------------------------------------------------------------------------
//      Copyright (c) uhavemyword@gmail.com. All rights reserved.
//      Created by Ben at 2/6/2013 9:37:28 AM
// ------------------------------------------------------------------------------------

namespace CP.NLayer.Client.WpfClient.Modules.Admin
{
    using CP.NLayer.Client.WpfClient.Common;
    using Microsoft.Practices.Prism.Modularity;
    using Microsoft.Practices.Prism.Regions;

    [Module]
    public class AdminModule : IModule
    {
        private IRegionManager _regionManager;

        public AdminModule(IRegionManager regionManager)
        {
            this._regionManager = regionManager;
        }

        public void Initialize()
        {
            this._regionManager.RegisterViewWithRegion(RegionNames.MainNavigationRegion, typeof(NavigationView));
        }
    }
}
